<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Http\Resources\BannerCollection;
use App\Models\Banner;
use Jiannei\Response\Laravel\Support\Facades\Response;

class BannerController extends Controller
{
    public function index()
    {
        return Response::success(new BannerCollection(Banner::get()),'操作成功');
    }
}
